﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace brand.cyt369.com.models
{
    /// <summary>
    /// 品牌图片表
    /// </summary>
    [Table("TB_BrandImage")]
    public class BrandImage
    {
        public int Id { get; set; }

        /// <summary>
        /// 品牌编号
        /// </summary>
        public int BrandID {  get; set; }

        /// <summary>
        /// 文件扩展名
        /// </summary>
        public string FileExtension { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string? Name {  get; set; }

        /// <summary>
        /// 顺序号
        /// </summary>
        public int OrderNumber {  get; set; }

        /// <summary>
        /// 图片路径
        /// </summary>
        public string ImagePath {  get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime ChangedTime { get; set; }

        [JsonIgnore]
        /// <summary>
        /// 品牌-图片
        /// </summary>
        public Brand Brand {  get; set; }
    }
}
